package com.ytzl.itrip.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 返回给前端数据 - token相关的VO
 * Created by sam on 2018/2/8.
 */
@ApiModel(value = "ItripTokenVO", description = "用户认证凭证")
public class ItripTokenVO {

    @ApiModelProperty("用户认证凭证")
    private String token;

    @ApiModelProperty("过期时间")
    private long expTime;

    @ApiModelProperty("生成时间")
    private long genTime;

    public ItripTokenVO(String token, long expTime, long genTime) {
        this.token = token;
        this.expTime = expTime;
        this.genTime = genTime;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public long getExpTime() {
        return expTime;
    }

    public void setExpTime(long expTime) {
        this.expTime = expTime;
    }

    public long getGenTime() {
        return genTime;
    }

    public void setGenTime(long genTime) {
        this.genTime = genTime;
    }
}
